<?php
	include_once '../inc/db.php';
	include_once '../inc/security.php';
	sec_session_start();
	$cn = new db_mysqli();
	
	if (login_check($cn) == true) {
		if ($_SESSION['admin'] == 1)
			echo $cn->OutputJSON('select * from alerts where viewed=0');
	}
	unset($cn);
?>